<%@ page contentType="text/html;charset=UTF-8"%>
<html>
<head>
<%--<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />--%>
<%--<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>--%>
<meta name="layout" content="main" />
<%--<link rel="stylesheet"--%>
<%--	href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">--%>
<%--<link rel='stylesheet' type='text/css'--%>
<%--	href='http://www.jqueryscript.net/demo/Easy-jQuery-3D-Side-Menu-Plugin-with-CSS3-Box-Lid/css/reset.css'>--%>
<%--<link rel='stylesheet' type='text/css'--%>
<%--	href='http://www.jqueryscript.net/demo/Easy-jQuery-3D-Side-Menu-Plugin-with-CSS3-Box-Lid/css/box-lid.css'>--%>
<%--<link rel='stylesheet' type='text/css'--%>
<%--	href='http://www.jqueryscript.net/demo/Easy-jQuery-3D-Side-Menu-Plugin-with-CSS3-Box-Lid/css/box-lid-nav.css'>--%>

<%--<script src="http://code.jquery.com/jquery-1.9.1.js"></script>--%>
<%--<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>--%>
<%--<link rel="stylesheet" href="/resources/demos/style.css">--%>
<%--<script src="${resource(dir: 'js', file: 'jquery.box-lid.js')}"--%>
<%--	type="text/javascript"></script>--%>
<%-- <g:javascript library="jquery" />--%>
<%--    <jqui:resources theme="darkness" />--%>

<r:layoutResources />
<title>Insert title here</title>
</head>
<body>
	<h1>Alle Fragen</h1>
	<div class="body">
		Alle/neue Fragen
		<%--			<g:form action="save" >--%>
		<g:formRemote name="subForm"
			url="[controller:'frage', action:'save']" update="mainContent">
			<div
				class="fieldcontain ${hasErrors(bean: frageInstance, field: 'benutzer', 'error')} required">
				<label for="benutzer"> <g:message
						code="frage.benutzer.label" default="Benutzer" /> <span
					class="required-indicator">*</span>
				</label>
					<g:hiddenField name="benutzer.id" id="benutzer" value="${user?.id }"/>
			</div>

			<div
				class="fieldcontain ${hasErrors(bean: frageInstance, field: 'gestellteFrage', 'error')} ">
				<label for="gestellteFrage"> <g:message
						code="frage.gestellteFrage.label" default="Gestellte Frage" />
				</label>
				<g:textArea name="gestellteFrage"
					value="${frageInstance?.gestellteFrage}" />
			</div>

			<div
				class="fieldcontain ${hasErrors(bean: frageInstance, field: 'kategorie', 'error')} required">
				<label for="katId"> <g:message
						code="frage.kategorie.label" default="Kategorie" /> <span
					class="required-indicator">*</span>
				</label>
					<g:hiddenField name="katId" id="katId" value="${katId}"/>
			</div>

			<g:submitButton name="save" />
		</g:formRemote>
		
		<div>
			<divid="maincontent">
				<h1>please Mension that this Site is still</h1>
				<g:img dir='images' file='under_construction_hammer.gif' />
				<ul>
					<g:each in="${fragen }" var="f" status="i">
						<li><g:link controller="antwort" action="alle"
								params="${[frage:f.id] }">
								${f }
							</g:link>${f.dateCreated}</li>
					</g:each>
				</ul>

			</div>
		</div>
	</div>
</body>
</html>